package com.kitty.game.equip.handler;

import com.kitty.game.role.model.Role;
import org.springframework.stereotype.Component;
import com.kitty.game.equip.handler.EquipIdentifyHandler;


/**
 * 精致鉴定
 */
@Component("EquipDelicate")
public class EquipDelicateHandler extends EquipIdentifyHandler {
    @Override
    void addIdentify(Role role) {
        roleService.addAchieveScore(role,"301023");
        role.setEquipIdentify((short) (role.getEquipIdentify() + 200));
        roleService.updateIdentify(role);
    }

    @Override
    public int needCash(short level, int pos) {
        int needCash = super.needCash(level, pos) * 5;
        return Math.max(needCash, 0);
    }


    @Override
    public String getUpdateTypeStr() {
        return "equip_delicate";
    }

}
